<?php
    require('includes/GoogleMapAPI.class.php');	
    $map = new GoogleMapAPI('map');
	$kod=$_GET['kod'];
	$map->addMarkerIcon('/jweather/markers/'.$kod.'.png','/jweather/markers/'.$kod.'.png',20,70,0,0);
	if(!isset($_GET['long']) || !isset($_GET['lat'])) echo "Greska";
	$long=$_GET['long'];
	$lat=$_GET['lat'];
	$temp=$_GET['temp'];
	$cond=$_GET['cond'];
	$map->addMarkerByCoords($long,$lat,$title = "",$html = "<div id=\"mappop2\">" .$cond . "</div><br /><div id=\"mappop\">" . $temp." &deg;C</div>",$tooltip = '');


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
    <head>
	<style type="text/css">
		#mappop2{
			text-align: center;
			font-size:14px;
			color:#4b4ea1;
			font-weight:bold;
			font-family:Verdana;
			}
			#mappop{
			text-align: center;
			font-size:20px;
			color:#4b4ea1;
			font-weight:bold;
			font-family:Verdana;
			}
	</style>
			<?php $map->printHeaderJS(); ?>
			<?php $map->printMapJS(); ?> 
		<!-- necessary for google maps polyline drawing in IE -->
		<style type="text/css">
			v\:* {
				behavior:url(#default#VML);
			}
		</style>
    </head>
    <body onload="onLoad()">
		<?php $map->printMap(); ?>
    </body>
</html>
